package com.sinothk.fc.goodsStock.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sinothk.fc.goodsStock.entity.GoodsStockClassifyVO;
import com.sinothk.fc.goodsStock.entity.GoodsStockEntity;
import com.sinothk.fc.goodsStock.entity.GoodsStockSearchReq;
import org.apache.ibatis.annotations.Param;

/**
 * @Description: 库存信息
 * @Author: Liangyt
 * @Date: 2022-07-30
 * @Version: V1.0
 */
public interface GoodsStockMapper extends BaseMapper<GoodsStockEntity> {
    IPage<GoodsStockClassifyVO> listForClassify(Page<GoodsStockEntity> page, GoodsStockSearchReq searchReq);

    GoodsStockClassifyVO getStockAllNumByBarcode(@Param("storeId") String storeId, @Param("barcode") String barcode);

}
